how to write the electron configuration of an element